﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cur_consume.aspx.cs" Inherits="SF.Ucenter.admin.users.cur_consume" %>
<%@ Import Namespace="SF.Common" %>

<!DOCTYPE html>
<%--客户关系列表--%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>客户消费</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <style type="text/css">
        .toolbar .l-list .icon-list {
            margin-top: 7px;
        }

        .keywordtip {
          display: block;
          float: left;
          margin: 0;
          padding: 0 5px;
          height: 30px;
          line-height: 28px;
          font-size: 12px;
          color: #444;
        }
    </style>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="cur_list.aspx" class="back"><i></i><span>返回列表页</span></a>
            <a href="../First.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <a href="cur_list.aspx"><span>我的客户</span></a>
            <i class="arrow"></i>
            <span>客户消费</span>
        </div>
        <!--/导航栏-->

        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <div class="l-list">
                        <ul class="icon-list">
                            <li><span>当前客户：<asp:Label ID="lblCurCustomer" runat="server" /></span></li>
                        </ul>
                    </div>
                    <div class="r-list">
                        <span class="keywordtip">筛选</span>
                        <asp:TextBox ID="txtKeyWords" runat="server" CssClass="keyword"  />
                        <span class="keywordtip">时间</span>
                        <asp:TextBox ID="txtStartTime" runat="server" CssClass="keyword"  ReadOnly="true" 
                                onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                        <span class="keywordtip"> - </span>
                        <asp:TextBox ID="txtEndTime" runat="server" CssClass="keyword"  ReadOnly="true" 
                                onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />

                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click">查询</asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th  width="7%" >支付方式</th>
                        <th align="left" width="15%">订单编号</th>
                        <th align="left" width="10%">用户编号</th>
                        <th align="left" width="20%">地址信息</th>
                        <th align="left" width="10%">小计</th>
                        <th align="left" width="10%">订单时间</th>
                        <th align="left" width="7%">操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td  align="center" ><%# Eval("payWay").ToString().Equals("1")?"微支付":"货到付款" %></td>
                    <td><%# Eval("orderNum") %></td>
                    <td><%# Eval("userNum") %></td>
                    <td><%# Eval("addressText") %></td><%--重命名字段--%>
                    <td><%# Eval("totalMoney") %></td>
                    <td><%#string.Format("{0:g}",Eval("addTime"))%></td>
                    <td><a href="/admin/goods/orders/order_msg.aspx?action=<%#DTEnums.ActionEnum.View %>&id=<%#Eval("id")%>">明细</a></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"10\">暂无订单记录</td></tr>" : ""%>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->
        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>

